//
// Created by zhouwd on 2019/8/1.
//

#ifndef IPTVSETTING_MEDIA_AUDIO_FRAME_NOTIFY_H
#define IPTVSETTING_MEDIA_AUDIO_FRAME_NOTIFY_H
#include <jni.h>
#include "log_util.cpp"

typedef class _MEDIA_AUDIO_FRAME_NOTIFY {
private:
    jobject callbackObj;
    jmethodID onChangedMD;
    JNIEnv *java;
    JavaVM *javaVM;
public:
    int init(JavaVM *javaVM, jobject callbackObj, jmethodID onChangedMD);
    int updateAudioFrameData(uint8_t *data, int len);
    int prepare();
    int destory();
} MediaAudioFrameNotify;


#endif //IPTVSETTING_MEDIA_AUDIO_FRAME_NOTIFY_H
